<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8"/>
    <title></title>
</head>
<body>
<h1 th:text="${host}">Hello World</h1>
<h2>[[${host}]]</h2>

<script th:inline="javascript">
    alert([[${host}]]);
</script>
</body>
</html>